﻿<%@ Page Language="C#" MasterPageFile="AdminSite.master" AutoEventWireup="true" CodeFile="BaiViet.aspx.cs"
    Inherits="BaiViet"%>

<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style2
        {
            height: 21px;
            width: 2752px;
        }
        .style3
        {
            width: 849px;
            height: 21px;
        }
        .style5
        {
            height: 24px;
        margin-left: 40px;
    }
        .style6
        {
            width: 849px;
            }
        #noidung
        {
            width: 912px;
        }
        #txtNoiDung
        {
            height: 102px;
            width: 908px;
        }
        .style7
        {
            height: 14px;
        }
        .style20
        {
            height: 24px;
        }
        .style26
        {
            height: 24px;
        }
        .style27
        {
            width: 170px;
            height: 24px;
        }
        .style28
        {
        }
        .style29
        {
        width: 2752px;
    }
        #txtNoiDung0
        {
            height: 102px;
            width: 908px;
        }
        .style31
        {
            height: 24px;
        }
        .style32
        {
            width: 140px;
        }
        .style33
        {
            width: 2752px;
            height: 127px;
        }
        .style34
        {
            width: 849px;
            height: 127px;
        }
        .style37
        {
            height: 24px;
            width: 65px;
        }
        .style38
        {
            height: 24px;
            width: 236px;
        }
        </style>
     
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
   
  
    <h2 align="center" style="font-weight: bold">
   
        <asp:Label ID="lblTitle" runat="server" Text="BÀI VIẾT"></asp:Label>
    </h2>
    <asp:ValidationSummary ID="BaiVietValidationSummary" runat="server" CssClass="failureNotification"
        ValidationGroup="BaiVietValidationGroup" DisplayMode="List" />
    <table>
        <tr>
            <td class="style29">
                Người tạo:</td>
            <td class="style38">
                <asp:Label ID="lblNguoiTao" runat="server" Text="" Font-Bold="True"></asp:Label>
            </td>
            <td class="style37">
                Ngày tạo:</td>
            <td class="style31" colspan="2">
                <asp:Label ID="lblNgayTao" runat="server" Text="" Font-Bold="True"></asp:Label>
            </td>
         <td class="style32"></td>
        </tr>
        <tr runat="server" id="rowHide">
            <td class="style29">
                Địa chỉ:</td>
            <td class="style38">
                <asp:Label ID="lblDiaChi" runat="server" Font-Bold="True"></asp:Label>
            </td>
            <td class="style37">
                Email:</td>
            <td class="style31" >
                <asp:Label ID="lblEmail" runat="server" Font-Bold="True"></asp:Label>
            </td>
               <td class="style27">
                Số ĐT:<asp:Label ID="lblSDT" runat="server" Font-Bold="True"></asp:Label>
            </td>
            <td class="style26" >
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style29">
                Người sửa:</td>
            <td class="style38">
                <asp:Label ID="lblNguoiCapNhat" runat="server" Text="" Font-Bold="True"></asp:Label>
            </td>
            <td class="style37">
                Ngày sửa:</td>
            <td class="style20" colspan="3">
                <asp:Label ID="lblNgayCapNhat" runat="server" Text="" Font-Bold="True"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                Tiêu đề</td>
            <td class="style3" colspan="5">
                <asp:TextBox ID="txtTieuDe" runat="server" Width="98%" Font-Bold="True"></asp:TextBox>
                <asp:RequiredFieldValidator ID="TieuDeRequired" runat="server" ControlToValidate="txtTieuDe"
                    CssClass="failureNotification" ErrorMessage="* Bạn chưa nhập tiêu đề bài viết"
                    ToolTip="Vui lòng nhập tiêu đề bài viết." ValidationGroup="BaiVietValidationGroup">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td class="style29">
                Ảnh hiển thị</td>
            <td class="style6" colspan="3">
                <asp:FileUpload ID="uploadImage" runat="server" Width="580px" 
                   />
                  
            </td>
            <td align="center" class="style28" rowspan="3" valign="top">
                <asp:Image ID="Image1" runat="server" Height="214px" Width="188px" 
                    BorderStyle="Solid"  />
            </td>
        </tr>
        <tr>
            <td class="style33" valign="top">
                Trích đoạn</td>
            <td class="style34" colspan="3" valign="top">
               <CKEditor:CKEditorControl ID="txtTrichDoan" runat="server" Height="108px" 
                    Width="578px"></CKEditor:CKEditorControl>
            </td>
        </tr>
        <tr>
            <td class="style29">
                &nbsp;</td>
            <td class="style6" colspan="3">
                &nbsp;<asp:CheckBox ID="ckcDuyet" runat="server" Text="Duyệt đăng" Font-Bold="False" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:CheckBox ID="ckcNoiBat" runat="server" Text="Bài viết nổi bật" Font-Bold="False" />
            </td>
        </tr>
        <tr>
            <td class="style5" align="center" colspan="5">
                <asp:Button CssClass="btnadmin" ID="btnSave" runat="server" Text="Lưu" Width="79px" ValidationGroup="BaiVietValidationGroup"
                    OnClick="btnSave_Click" />
                <asp:Button CssClass="btnadmin" ID="btnNew" runat="server" Text="Tạo mới" ViewStateMode="Disabled" Width="92px"
                    OnClick="btnNew_Click" />
                <asp:Button CssClass="btnadmin" ID="btnDelete" runat="server" Text="Xóa bài viết" OnClick="btnDelete_Click"
                    Width="91px" />
                <asp:Button CssClass="btnadmin" ID="btnBack" runat="server" Text="Quản lý bài viết" OnClick="btnBack_Click" />
                <asp:HiddenField ID="typeField" runat="server" />
                <asp:HiddenField ID="keyField" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style5" align="center" colspan="5" style="font-weight: bold">
                NỘI DUNG BÀI VIẾT</td>
        </tr>
        <tr>
            <td  colspan="6">
               <CKEditor:CKEditorControl ID="txtNoiDung" runat="server"></CKEditor:CKEditorControl></td>
        </tr>
        <tr>
            <td class="style7" colspan="5" align="center">
                <asp:Button CssClass="btnadmin" ID="btnSave2" runat="server" Text="Lưu" ValidationGroup="BaiVietValidationGroup"
                    Width="79px" OnClick="btnSave_Click" />
                <asp:Button CssClass="btnadmin" ID="btnNew2" runat="server" Text="Tạo mới" Width="92px" OnClick="btnNew_Click" />
                <asp:Button CssClass="btnadmin" ID="btnDelete2" runat="server" Text="Xóa bài viết" Width="91px" OnClick="btnDelete_Click" />
                <asp:Button CssClass="btnadmin" ID="btnBack1" runat="server" Text="Quản lý bài viết" OnClick="btnBack_Click" />
            </td>
        </tr>
    </table>
    
</asp:Content>
